package com.rkc.feign;

import com.rkc.utils.JsonData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author `RKC`
 * @date 2021/11/6 16:35
 */
@FeignClient(name = "shopping-order-service", path = "/api/order/v1")
public interface ProductOrderFeignService {

    /**
     * 查询订单状态
     * @param outTradeNo
     * @return
     */
    @GetMapping("query_state")
    JsonData queryProductOrderState(@RequestParam("out_trade_no") String outTradeNo);
}
